
<template>
  <div>
    {{ obj }}
    <button @click="a">修改</button>
  </div>
</template>

<script>

export default {
  data() {
    return {
      obj: {
        name: '张三'
      }
    }
  },
  methods: {
    a() {
      this.obj.name = '李四'
    }
  }

}
</script>

<style>

</style>
